package com.roadmap.entities;

import java.util.Date;

import com.roadmap.common.BaseEntity;

/** happened time of activity equals to createdTime defined in BaseObject */
public class Activity extends BaseEntity {
	/*
	 * [aspirantId] Eric [userOperation]adds a comment to [operatedObject] the
	 * plan [operatedObjectId]ABC [content] "you're so excellent"
	 */
	private String aspirantId; // who performs the activity
	private String userOperation; //
	private String content; // information of the activity
	private String operatedObject; // the entity which aspirant performs on
	private String operatedObjectId; // the id of operated object
	private static final String separator = "/::/";

	public Activity() {
		super();
	}

	public Activity(String aspirantId, String userOperation,
			String operatedObject, String operatedObjectId, String content) {
		super();
		this.aspirantId = aspirantId;
		this.userOperation = userOperation;
		this.operatedObject = operatedObject;
		this.operatedObjectId = operatedObjectId;
		this.content = content;
	}

	public String getAspirantId() {
		return aspirantId;
	}

	public void setAspirantId(String aspirantId) {
		this.aspirantId = aspirantId;
	}

	public String getUserOperation() {
		return userOperation;
	}

	public void setUserOperation(String userOperation) {
		this.userOperation = userOperation;
	}

	public String getOperatedObject() {
		return operatedObject;
	}

	public void setOperatedObject(String operatedObject) {
		this.operatedObject = operatedObject;
	}

	public String getOperatedObjectId() {
		return operatedObjectId;
	}

	public void setOperatedObjectId(String operatedObjectId) {
		this.operatedObjectId = operatedObjectId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	/** override the method because it is useless for Activity */
	public Date getUpdatedTime() {
		return null;
	}

	public static String getSeparator() {
		return separator;
	}
}
